home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 July / WPCJUL96.ISO / file.exe / MGIFINJ.DXR / 00012_MGIHammerAnimate ,MGINumberAnimate .ls < prev    next >
Encoding:
Text File  |  1996-05-15  |  3.3 KB  |  90 lines

  1. on MGIHammerAnimate
  2.   global MGIHammerSprite, MGIHammer, MGIHammerSpriteTwo, MGIWallBitOneSprite, MGIToolBagSprite, MGIEmptyToolBagSprite, MGICompOnStage, MGICompOneSprite, MGICompTwoSprite, MGICompTwoOnStage
  3.   if MGIHammer = 0 then
  4.     if rollOver(MGIHammerSprite) then
  5.       set MGIHammer to 1
  6.       repeat with t = 1 to 14
  7.         set the locV of sprite MGIHammerSprite to the locV of sprite MGIHammerSprite - 10
  8.         updateStage()
  9.       end repeat
  10.       set the castNum of sprite MGIHammerSpriteTwo to the castNum of sprite MGIHammerSprite
  11.       set the locH of sprite MGIHammerSpriteTwo to the locH of sprite MGIHammerSprite
  12.       set the locV of sprite MGIHammerSpriteTwo to the locV of sprite MGIHammerSprite
  13.       set the locH of sprite MGIHammerSprite to 2000
  14.       updateStage()
  15.       repeat with t = 1 to 17
  16.         set the locV of sprite MGIHammerSpriteTwo to the locV of sprite MGIHammerSpriteTwo + 10
  17.         updateStage()
  18.       end repeat
  19.     end if
  20.   end if
  21.   repeat while MGIHammer = 1
  22.     cursor(200)
  23.     if the mouseH < 150 then
  24.       set MGIHammer to 2
  25.       exit repeat
  26.     end if
  27.     if (the mouseH > 139) and (the mouseH < 588) then
  28.       set the locH of sprite MGIHammerSpriteTwo to the mouseH
  29.     end if
  30.     updateStage()
  31.   end repeat
  32.   if MGIHammer = 2 then
  33.     set the locH of sprite MGIHammerSpriteTwo to 140
  34.     repeat with f = 1 to 5
  35.       set the castNum of sprite MGIHammerSpriteTwo to the castNum of sprite MGIHammerSpriteTwo + 1
  36.       updateStage()
  37.     end repeat
  38.     set MGIHammer to 3
  39.     repeat with t = 1 to 10
  40.       set the castNum of sprite MGIWallBitOneSprite to the castNum of sprite MGIWallBitOneSprite + 1
  41.       set the locV of sprite MGIHammerSpriteTwo to the locV of sprite MGIHammerSpriteTwo + 40
  42.       updateStage()
  43.     end repeat
  44.     set the locH of sprite MGICompOneSprite to 189
  45.     set the locV of sprite MGICompOneSprite to 311
  46.     set MGICompOnStage to 1
  47.     updateStage()
  48.     cursor(-1)
  49.   end if
  50.   if MGIHammer > 2 then
  51.     repeat while rollOver(MGIToolBagSprite)
  52.       set the locV of sprite MGIEmptyToolBagSprite to 432
  53.       updateStage()
  54.     end repeat
  55.     if not rollOver(MGIToolBagSprite) then
  56.       set the locV of sprite MGIEmptyToolBagSprite to 2000
  57.       updateStage()
  58.     end if
  59.   end if
  60. end
  61.  
  62. on MGINumberAnimate
  63.   global MGINumberSprite, MGIWallBitTwoSprite, MGICompTwoSprite, MGICompTwoOnStage
  64.   repeat while rollOver(MGINumberSprite)
  65.     MGISpinE()
  66.     set the castNum of sprite MGINumberSprite to 91
  67.     if (the castNum of sprite MGIWallBitTwoSprite = 85) and the mouseDown then
  68.       repeat with d = 1 to 4
  69.         set the castNum of sprite MGIWallBitTwoSprite to the castNum of sprite MGIWallBitTwoSprite + 1
  70.         set the locV of sprite MGINumberSprite to the locV of sprite MGINumberSprite + 40
  71.         updateStage()
  72.       end repeat
  73.       repeat with d = 1 to 4
  74.         set the locV of sprite MGIWallBitTwoSprite to the locV of sprite MGIWallBitTwoSprite + 40
  75.         set the locV of sprite MGINumberSprite to the locV of sprite MGINumberSprite + 40
  76.         updateStage()
  77.       end repeat
  78.       set the locH of sprite MGICompTwoSprite to 341
  79.       set the locV of sprite MGICompTwoSprite to 309
  80.       set MGICompTwoOnStage to 1
  81.       updateStage()
  82.     end if
  83.     updateStage()
  84.   end repeat
  85.   if not rollOver(MGINumberSprite) then
  86.     set the castNum of sprite MGINumberSprite to 90
  87.     updateStage()
  88.   end if
  89. end
  90.